//
//  LPHeadSecondFuncationView.m
//  ZhongWangYuan
//
//  Created by liuyingping on 2018/6/2.
//  Copyright © 2018年 ZJ. All rights reserved.
//

#import "LPHeadSecondFuncationView.h"

@implementation LPHeadSecondFuncationView

- (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title number:(NSString *)number color:(NSString *)color
{
    self = [super initWithFrame:frame];
    if (self) {
        UILabel *numberText = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, 35 * [UIScreen zj_screenHScale])];
        numberText.text = number;
        numberText.textAlignment = NSTextAlignmentCenter;
        numberText.font = LYPFONT(40);
        numberText.textColor = [UIColor zj_colorWithHexString:color];
        [self addSubview:numberText];
        
        
        UILabel *titleText = [[UILabel alloc] initWithFrame:CGRectMake(0, 50 * [UIScreen zj_screenHScale], frame.size.width, 10 * [UIScreen zj_screenHScale])];
        titleText.text = title;
        titleText.textAlignment = NSTextAlignmentCenter;
        titleText.font = LYPFONT(15);
        titleText.textColor = [UIColor zj_colorWithHexString:@"c6c6c6"];
        [self addSubview:titleText];
    }
    return self;
}

@end
